package com.wavehi.classloader;

import sun.security.ec.CurveDB;
import sun.security.provider.Sun;

/**
 * @Author WaveHi
 * @Date 1/10/2021 下午 9:13
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description Demonstrate the use of Extension Class Loader.
 */
public class ExtensionClassLoaderDemo {
    public static void main(String[] args) {
        //Get the path that Extension Class Loader will load.
        String extDirs = System.getProperty("java.ext.dirs");
        for(String path : extDirs.split(";")) {
            System.out.println(path);
        }
//        D:\java\openJDK8\subject\jre\lib\ext
//        C:\WINDOWS\Sun\Java\lib\ext
        ClassLoader classLoader = CurveDB.class.getClassLoader();
        System.out.println(classLoader);//sun.misc.Launcher$ExtClassLoader@d93b30
    }
}
